import { ToSummary } from "./todoSummary";
import { UserSummary } from "./userSummary";

export class UserDetails extends UserSummary{

    todos:ToSummary[]
 
    constructor(user:any,todos:any) {
        super(user);
        this.price=user.price;
        this.currency=user.currency
        this.todos=todos.map(item=>new ToSummary(item) )
    }
    
}